package com.yh.yellowhow;

import com.example.yellowhow.R;

import android.os.Bundle;
import android.app.Activity;
import android.view.*;
import android.widget.TextView;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
//		SimpleView simpleView = new SimpleView(this);
//		setContentView(simpleView);
		
//		ClockView view = (ClockView) findViewById(R.id.clockview);
//		
//		view.setOnMouseAngleListener(new ClockView.OnMouseAngleListener() {
//			
//			@Override
//			public void onMouseAngleChanged(View sender, float x, float y, float angle) {
//				TextView v = (TextView)findViewById(R.id.display_xy);
//				v.setText("X: " + x + "Y: "+ y);
//				v = (TextView)findViewById(R.id.display_angle);
//				v.setText("Angle: " + angle);
//			}
//		});
//		
//		view.setOnMouseStatusListener(new ClockView.OnMouseStatusListener() {
//			
//			@Override
//			public void onMouseStatu(View sender, String status) {
//				TextView v = (TextView)findViewById(R.id.display_status);
//				v.setText(status);				
//			}
//		});
//		
//		view.setOnChangeTimeListener(new ClockView.OnChangeTimeListener() {
//			
//			@Override
//			public void onChangeTime(View sender, int hour, int min) {
//				TextView v = (TextView)findViewById(R.id.display_time);
//				v.setText("TIME: " + hour + ":" + min);
//			}
//		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
